package com.qyhl.webtv.module_user.share;


import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import androidx.fragment.app.Fragment;

import com.qyhl.webtv.basiclib.base.BaseFragment;
import com.qyhl.webtv.commonlib.constant.ARouterPathConstant;
import com.qyhl.webtv.commonlib.utils.router.RouterManager;
import com.qyhl.webtv.module_user.R;
import com.qyhl.webtv.module_user.R2;

import butterknife.OnClick;

/**
 * A simple {@link Fragment} subclass.
 */
public class TeachFragment extends BaseFragment {
    private String html;

    public static TeachFragment newInstance(String html) {
        TeachFragment fragment = new TeachFragment();
        Bundle bundle = new Bundle();
        bundle.putString("html", html);
        fragment.setArguments(bundle);
        return fragment;
    }

    @Override
    protected View createView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        return inflater.inflate(R.layout.login_fragment_teach, container, false);
    }

    @Override
    protected void create() {
        html = getArguments().getString("html");
    }

    @Override
    protected void setListener() {

    }

    @Override
    protected void onFirstVisible() {

    }

    @Override
    protected void onVisible() {

    }

    @Override
    protected void onHide() {

    }

    @OnClick(R2.id.btn_teach)
    public void onClick(){
        RouterManager.router(ARouterPathConstant.TEACHACTIVITY);

    }

}
